home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.07 Jul 90 / Commando Programming ƒ / Rezscripts / RezC.MENU.Cmdo.R < prev    next >
Encoding:
Text File  |  1988-07-29  |  1.7 KB  |  71 lines  |  [TEXT/MPS ]

  1. /* File RezC.MENU.Cmdo.R */ 
  2. /* Commando interface to build MENU Rez input */
  3. /* W. Powell 1988 */
  4.  
  5. /* Rez definitions for Rez-building Commando interfaces */
  6. #include "Types.R"
  7. #include "Cmdo.R"
  8.  
  9. Resource 'cmdo' (200) {
  10.     { 265,
  11.     "RezC.MENU produces Rez input for a Menu resource.\n"
  12.     "NOTE: Input of menu items continues in subsequent dialogs.",
  13.     {
  14. /* This include file has a standard arrangement of items
  15.  *   common to all resources: ID#, attributes, name, 
  16.  *      and redirection of output from the Rezc.≈ script        */
  17. #include "CmdoReztStart.R"
  18.  
  19. /* other items particular to this case */    
  20.     /* Item 6 */
  21.     OR {{1}}, RadioButtons {{
  22.         {132,160,148,235},
  23.             "Enabled","enabled",NotSet,"Entire menu is enabled.",
  24.         {132,250,148,325},
  25.             "Disabled","disabled",NotSet,"Entire menu is disabled."
  26.         }},
  27.     /* Item 7 */
  28.     AND {{1,-8}}, RegularEntry {
  29.         "Menu Title:",
  30.         {85,30,101,110},
  31.         {85,115,101,330},
  32.         "",keepCase,"",
  33.         "Title for menu.\nClick the apple for DA menu." },
  34.     /* Item 8 */
  35.     OR {{1}}, CheckOption {
  36.         NotSet, {85,340,101,440},
  37.         "","apple","Click here to get apple DA menu." },
  38.     /* Item 9 */
  39.     OR {{1}}, RegularEntry {
  40.         "Proc ID#:",
  41.         {112,45,128,105},
  42.         {112,115,128,235},
  43.         "",keepCase,"",
  44.         "Menu Definition Proc ID # of this menu.\nNOTE:"
  45.         " Enter nothing to get default text menus." },
  46.     /* Item 10 */
  47.     OR {{-9}}, RadioButtons {{
  48.         {40,1000,41,1001},
  49.         "","textMenuProc",NotSet,"" }},
  50.     /* Item 11 */
  51.     OR {{7,8}}, DoItButton {},
  52.     /* Item 11 */
  53.     OR { {1} }, TextTitle {
  54.         plain, {132,50,148,155},
  55.         systemFont, systemSize,
  56.         "Entire menu is:" },
  57.     }, 
  58. /* Dialog 2 */
  59. /* Include the standard resource attributes dialog */
  60. #include "CmdoReztAttr.R"
  61.  
  62. /* Dialog 3 */
  63. /* Include a redirection dialog */
  64. #include "CmdoReztRdir.R"
  65.  
  66. }
  67. }; 
  68.  
  69. /* End File RezC.MENU.Cmdo.R */
  70.  
  71.